Images in index page
  • I'm having a hard time getting an image to appear in the index page. Here's the template.

    {{ local }}
    {{ set_section number="1" }}
    {{ list_articles length="1" order="bynumber asc" name="articles" }}
    {{ $campsite->article->name }}


    {{ $campsite->article->intro }}






    {{ list_article_images }}

    {{ /list_article_images }}


    {{ /list_articles }}
    {{ /local }}

    When I view the source I get:


    The NrImage value should have the value 1 but it's empty. When I do the queries in CampGetImage.php I get the value 1.

    Am I going about getting the image for an associated article incorrectly?
  • 1 Comment sorted by
  • In order to show Campsite to a client I need to figure out how to get the images working in the templates.

    Does anybody have experience working with the template language in version 3?